package com.ruoyi.project.module.api.auth.wechat.utils;

/**
 * 微信公众号-常量
 */
public interface WeChatConstant {

    String GET_ACCESS_TOKEN = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s";

    String GET_USER_INFO = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=%s&openid=%s&lang=zh_CN";

    String GET_QRCODE_TICKET = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=%s";

    String SHOW_QRCODE = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=%s";

    String QRCODE_FORM_DATA = "{\"expire_seconds\":\"%d\",\"action_name\":\"QR_STR_SCENE\",\"action_info\":{\"scene\":{\"scene_str\":\"%s\"}}}";

    String REDIS_KEY_ACCESS_TOKEN = "weixin:accesstoken";

    String REDIS_KEY_WECHAT_QRCODE_PREFIX = "weixin:code:";

    Integer EXPIRE_SECONDS = 60;

    String TOKEN = "kushu";

}
